<template>
  <div>n5
    <p :style="{backgroundColor:'rgb'+app}">随机背景颜色</p>
  </div>
</template>

<script>
export default {
computed:{
  app () {
      return `(${parseInt(Math.random() * 256)},${parseInt(
        Math.random() * 256
      )},${parseInt(Math.random() * 256)})`
    }
}
}
</script>

<style>

</style>